package pl.edu.pw.perg.compinfodb.manager;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import pl.edu.pw.perg.compinfodb.dao.IElementTypeDAO;
import pl.edu.pw.perg.compinfodb.entities.ElementType;

public class ElementTypeManager extends GenericManager<ElementType>
	implements IElementTypeManager {

	@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
	public List<ElementType> findRoots(){
		return ((IElementTypeDAO) getGenericDAO()).findRoots();
	}
	@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
	public List<ElementType> findRootCables(){
		return ((IElementTypeDAO) getGenericDAO()).findRootCables();
	}
	@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
	public List<ElementType> findRootModules(){
		return ((IElementTypeDAO) getGenericDAO()).findRootModules();
	}
}
